import request from '@/utils/request'
import type { BaseResponse } from '@/utils/request'
import type { UserInfo } from '@/api/interfaceDto/UserInfo'

// 获取当前用户信息
export const getCurrentUser = () => {
  return request.get<any, BaseResponse<UserInfo>>('/auth/getUserInfo')
}

// 获取萤石云访问令牌
export const getEzvizToken = () => {
  return request.get<any, BaseResponse<string>>('/ezviz/token')
}